import React from 'react';
import { Toast, NavBar } from 'react-vant';
import leftArrowImg from "../../../assets/images/icon/common resource/hdpi/common_icon_back_black_n.png";
interface Props {
  title: string;
}

const MyNavBar: React.FC = () => (
  <img style={{ width: "14px" }} src={leftArrowImg} alt="" />
);

const LeftArraw: React.FC<Props> = ({ title }) => (
  <NavBar
    title={title}
    onClickLeft={() => {
      window.history.back();
    }}
    leftArrow={<MyNavBar />}
    placeholder={true}
    safeAreaInsetTop={true}
    fixed
  />
);

export default LeftArraw;
